<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%request.setCharacterEncoding("UTF-8"); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'cqm_yiXiang.jsp' starting page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
-->
</style>
</head>

<body>
 
 <div  style=" height:55px;border:#FF0000 0px solid; margin:0px; background: url(imgs/top_bg.jpg);background-repeat:no-repeat;margin:0px 100px;">
<div align="right" style="margin:35px 55px auto; font-size:14px"><a href="index.jsp">首页</a></div>
</div>
<div style="font-size:12px;margin:0px 100px"> <a href="./cqm_chaKan.jsp?qq='"+<%=session.getAttribute("loginname") %>>退出</a></div>
<div style="border:#66CCFF 2px solid;  background-color:#F9F9F9; margin:0px 100px; width:975px;">

 

<div style="background-color:#E2F2F3; margin:-8px 10px 5px 10px;">
   <form action="<%=basePath%>/servlet/CQM_YiXiangServlet" method="post" onSubmit="return check1()" >
     <br>
     <br><br>
    <table border="0" align="center">
      <tr>
        <td height="54" colspan="2"><div align="center"><strong>求职意向</strong></div></td>
        <td width="523"  style="color:red;font-size:12px;">&nbsp</td>
        <td width="523"  style="color:red;font-size:12px;">所有项为必填项</td>
      </tr>
      <tr>
        <td height="15" colspan="3"><img src="imgs/chrf302.gif" /></td>
      </tr>
      <tr>
        <td width="110" height="47">&nbsp;</td>
        <td width="159"><span class="STYLE1">期望从事的职业:</span></td>
        <td>
           <img  src="imgs/9_11.gif"  onclick="change(2)"/>
              <input type="hidden"  id="zhiye" name="zhiye" value='<%=request.getAttribute("ss") %>'>
             
             
              <%   if(session.getAttribute("ss")!=null)
                 {out.println(session.getAttribute("ss"));}
               else{} %>
          
        </td>
        
      </tr>
      <tr>
        <td height="45">&nbsp;</td>
        <td><span class="STYLE1">期望从事的行业:</span></td>
        <td>
        <img  src="imgs/9_11.gif"  onclick="change2(<%=session.getAttribute("qq")%>)"/>
        
         <input type="hidden"  id="hangye" name="hangye" value='<%=request.getAttribute("ss1") %>'>       
       <%   if(request.getAttribute("ss1")!=null)
        { out.println(request.getAttribute("ss1"));
        }else{
           
        }
          
        
        
        %>
        </td>
      </tr>
      <tr>
        <td height="44">&nbsp;</td>
        <td><span class="STYLE1">期望工作的地点:</span></td>
        <td><select id="sheng" name="sheng"  onchange="getArea(this.value,'shi')">
          <option value="1">请选择</option>
        </select>
          <select id="shi" name="shi"  onchange=" getArea(this.value,'xian')">
            <option value="1">请选择</option>
          </select>
          <select id="xian" name="xian">
            <option value="1">请选择</option>
          </select></td>
      </tr>
      <tr>
        <td height="39">&nbsp;</td>
        <td><span class="STYLE1"><br />
  期望工资</span>：</td>
        <td><select id="gongzi" name="gongzi" >
          <option>1000</option>
          <option>2000</option>
          <option>3000</option>
          <option>4000</option>
          <option>5000</option>
          <option>6000</option>
        </select>
        <%
      session.setAttribute("zhi",session.getAttribute("ss") );
      session.setAttribute("hang",request.getAttribute("ss1"));
    
     %></td>
      </tr>
      <tr>
        <td height="28">&nbsp;</td>
        <td><span class="STYLE1">自我评价:</span></td>
        <td rowspan="2"><textarea style="background-color: #F9F9FB;" rows="10" cols="40" name="desc" id="desc"></textarea></td>
      </tr>
      <tr>
        <td height="66">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="68" colspan="3"><div align="center">
          <input name="submit" type="submit" value="确定" />
        </div></td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <br><br>
   </form>
   </div>
   
    <div id ="div"  style="display:none; width:600px; padding:20px 0px 0px 60px; z-index:100; border:1px solid black; position:relative; position:absolute; left:500px; top:100px;background:#9d9999;"></div>
	<div id ="div1"  style="display:none; width:400px; height:300px;margin:180px 0px ; z-index:5; border:1px solid black; position:relative; position:absolute; left:500px; top:30px; "></div>
	<div><img src="imgs/top_1.gif" /></div>
<br>
  <div style="border:#000000 solid 0px; margin:5px">
<table border="0" align="center">
  <tr>
    <td align="center"><span class="STYLE1">人才招聘 Email:xxx@qq.com　个人求职 Email:xxx@.com　或垂询100-4567-100</span></td>
  </tr>
  <tr>
    <td height="24" align="center"><span class="STYLE1">未经同意，不得转载本网站之所有招聘信息及作品 </span></td>
  </tr>
  <tr>
    <td align="center">   
      <span class="STYLE1">客服工作时间：8：00——17：00</span></td>
  </tr>
  
  <tr>
    <td align="center"><img src="imgs/biaoshi.gif" /></td>
  </tr>
  <tr>
    <td align="center"><span class="STYLE1">4567工作网版权所有?2009-2019 </span></td>
  </tr>
   
</table>
</div>
</div>
	
	
</body>
  
</html>

<script src="./ajax.js"></script>
<script>
function getArea( id,area){
	var ajax = initAjax();
	ajax.open('get', '<%=basePath%>/servlet/CQM_AreaServlet?id='+id+'&r='+Math.random(), true);
	ajax.send(null);
	ajax.onreadystatechange = function(){
		if(ajax.readyState==4){
			   var d = document.getElementById(area);
			  
			       d.options.length =1;
			        var  ff = ajax.responseText;
			         var ss = ff.split(";");
			        for(var i=1;i<ss.length;i++){
			        var sss = ss[i].split(":");	
				 
			         	var opt = new Option(sss[1], sss[0]);	
			if(window.ActiveXObject){
				d.add(opt);				
				}
			else{
				d.add(opt, null);
			}
			
					
					
							
			}
		}
	}
}

 getArea( "" , "sheng");


</script>


<script>
function  check1(){

     var hidden=document.getElementById('zhiye').value;
    
     if(hidden==null) {
     
       alert("请选择职业");
       return false;
       
     
     }
     var sheng=document.getElementById('sheng').value;
	if(sheng==1){
	
	   alert("请选择省");
	   return false;
	
	  }
	 var shi=document.getElementById('shi').value;
	 if(shi==1){
	 alert("请选择市");
	 return false;
	 } 
	  var xian=document.getElementById('xian').value;
	 if(xian==1){
	 alert("请选择县");
	 return false;
	 }
	 
	var desc=document.getElementById('desc').value;
	if(desc==''){
	  alert("请填写自我评价");
	  return false;
	  } 
	 }
</script>

<script>
function  change(id){

 var div=document.getElementById("div");
  div.style.display="block";
 
	var ajax = initAjax();
	ajax.open('get', '<%=basePath%>/servlet/CQM_ZhiYeServlet1?id='+id+'&r='+Math.random(), true);
	ajax.send(null);
	ajax.onreadystatechange = function(){
		if(ajax.readyState==4){
			  document.getElementById('div').innerHTML = ajax.responseText;

		}
	}
}




</script>

<script>
function  change2(id){

 var div=document.getElementById("div1");
  div.style.display="block";
 
	var ajax = initAjax();
	ajax.open('get', '<%=basePath%>/servlet/CQM_HangYe1Servlet?id='+id+'&r='+Math.random(), true);
	ajax.send(null);
	ajax.onreadystatechange = function(){
		if(ajax.readyState==4){
			  document.getElementById('div1').innerHTML = ajax.responseText;

		}
	}
}




</script>

